/**
 * 项目示例-列表综合搜索
 * Date 2023-5-25 09:33:56
 */
import type { FilterItem } from '@/components/FilterBar/types'

export const exampleOptions: FilterItem[] = [
  {
    label: '巡查项目',
    prop: 'project',
    type: 'select',
    defaultValue: '',
    inputProps: {
      options: [
        { label: '全部', value: '' }
      ]
    }
  },
  {
    label: '计划名称',
    prop: 'name',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入计划名称'
    }
  },
  {
    label: '状态',
    prop: 'state',
    type: 'select',
    defaultValue: '',
    inputProps: {
      options: [
        { label: '全部', value: '' }
      ]
    }
  },
  {
    label: '生效日期',
    prop: 'startTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  },
  {
    label: '截止日期',
    prop: 'endTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  },
  {
    label: '多选框',
    prop: 'checked',
    type: 'checkbox',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      showCheckAll: true,
      options: [
        { label: '选项一', value: '1' },
        { label: '选项二', value: '2' },
        { label: '选项三', value: '3' }
      ]
    }
  }
]
